﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

/**
 * 创建时间：2015/1/9 18:35:22
 * 作者：yong.blackcore
 * Email：itblackhole@outlook.com
 * QQ：50404503
 */
namespace ComicIsland.Common.Entities
{
    [DataContract]
    public class ShareData
    {
        [DataMember]
        public string ShareType { get; set; }

        [DataMember]
        public string AccessToken { get; set; }

        [DataMember]
        public string Content { get; set; }

        /// <summary>
        /// 文件存储类型
        /// </summary>
        [DataMember]
        public int ImageSavedType { get; set; }

        [DataMember]
        public string ImageUrl { get; set; }

        [DataMember]
        public byte[] ImageByte { get; set; }

        #region QQ
        /// <summary>
        /// QQ_AppKey
        /// </summary>
        [DataMember]
        public string AppKey { get; set; }

        [DataMember]
        public string OpenId { get; set; }
        #endregion QQ
    }

    public enum ShareType
    {
        QQWeibo,
        SinaWeibo,
    }

    public enum ImageLocationType
    {
        /// <summary>
        /// 
        /// </summary>
        AppFile = 0,
        /// <summary>
        /// 包含在App中的资源文件
        /// </summary>
        AppResource = 1,
        /// <summary>
        /// 网络地址
        /// </summary>
        Net = 3,
        /// <summary>
        /// 独立缓存
        /// </summary>
        Iso = 4
    }



    [DataContract]
    public class ShareQQWeiboResultData
    {

        [DataMember(Name = "id")]
        public string Id { get; set; }

        [DataMember(Name = "time")]
        public int Time { get; set; }
    }

    [DataContract]
    public class ShareQQWeiboResult
    {
        [DataMember(Name = "data")]
        public ShareQQWeiboResultData Data { get; set; }

        [DataMember(Name = "errcode")]
        public int Errcode { get; set; }

        [DataMember(Name = "msg")]
        public string Msg { get; set; }

        [DataMember(Name = "ret")]
        public int Ret { get; set; }

        [DataMember(Name = "seqid")]
        public long Seqid { get; set; }
    }


}
